package com.wildwolf.project.wildwolf.model;

import java.util.Date;

/**
 * 消息模型
 * 
 * @author LEON
 * 
 */
public class MessageEntity {
	private String bareJid;
	private String name;
	private String message;
	private boolean isError;
	private Date timestamp;
	private int layoutId;
	private int drawableId;

	public MessageEntity(final String bareJid, final String name,
			final String message) {
		this.bareJid = bareJid;
		this.name = name;
		this.message = message;
		this.isError = false;
	}

	public MessageEntity(final String bareJid, final String name,
			final String message, final boolean isError) {
		this.bareJid = bareJid;
		this.name = name;
		this.message = message;
		this.isError = isError;
	}

	public MessageEntity(final String bareJid, final String name,
			final String message, final boolean isError, final Date date) {
		this.bareJid = bareJid;
		this.name = name;
		this.message = message;
		this.isError = isError;
		this.timestamp = date;
	}
	public MessageEntity(final String bareJid, final String name,
			final String message, final boolean isError, final Date date,int layoutId, int drawableId) {
		this.bareJid = bareJid;
		this.name = name;
		this.message = message;
		this.isError = isError;
		this.timestamp = date;
		this.layoutId = layoutId;
		this.drawableId = drawableId;
	}
	public String getBareJid() {
		return bareJid;
	}

	public void setBareJid(String bareJid) {
		this.bareJid = bareJid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isError() {
		return isError;
	}

	public void setError(boolean isError) {
		this.isError = isError;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public int getLayoutId() {
		return layoutId;
	}

	public void setLayoutId(int layoutId) {
		this.layoutId = layoutId;
	}

	public int getDrawableId() {
		return drawableId;
	}

}